3.182 \(\int \frac{(d+e x^2) (a+b \log (c x^n))}{x^6} \, dx\)

Optimal. Leaf size=57 \[ -\frac{d \left (a+b \log \left (c x^n\right )\right )}{5 x^5}-\frac{e \left (a+b \log \left (c x^n\right )\right )}{3 x^3}-\frac{b d n}{25 x^5}-\frac{b e n}{9 x^3} \]

[Out]

-(b*d*n)/(25*x^5) - (b*e*n)/(9*x^3) - (d*(a + b*Log[c*x^n]))/(5*x^5) - (e*(a + b*Log[c*x^n]))/(3*x^3)

________________________________________________________________________________________

Rubi [A]  time = 0.0457509, antiderivative size = 48, normalized size of antiderivative = 0.84, number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {14, 2334, 12} \[ -\frac{1}{15} \left (\frac{3 d}{x^5}+\frac{5 e}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{b d n}{25 x^5}-\frac{b e n}{9 x^3} \]

Antiderivative was successfully verified.

[In]

Int[((d + e*x^2)*(a + b*Log[c*x^n]))/x^6,x]

[Out]

-(b*d*n)/(25*x^5) - (b*e*n)/(9*x^3) - (((3*d)/x^5 + (5*e)/x^3)*(a + b*Log[c*x^n]))/15

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rubi steps

\begin{align*} \int \frac{\left (d+e x^2\right ) \left (a+b \log \left (c x^n\right )\right )}{x^6} \, dx &=-\frac{1}{15} \left (\frac{3 d}{x^5}+\frac{5 e}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \frac{-3 d-5 e x^2}{15 x^6} \, dx\\ &=-\frac{1}{15} \left (\frac{3 d}{x^5}+\frac{5 e}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{15} (b n) \int \frac{-3 d-5 e x^2}{x^6} \, dx\\ &=-\frac{1}{15} \left (\frac{3 d}{x^5}+\frac{5 e}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac{1}{15} (b n) \int \left (-\frac{3 d}{x^6}-\frac{5 e}{x^4}\right ) \, dx\\ &=-\frac{b d n}{25 x^5}-\frac{b e n}{9 x^3}-\frac{1}{15} \left (\frac{3 d}{x^5}+\frac{5 e}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end{align*}

Mathematica [A]  time = 0.0023236, size = 69, normalized size = 1.21 \[ -\frac{a d}{5 x^5}-\frac{a e}{3 x^3}-\frac{b d \log \left (c x^n\right )}{5 x^5}-\frac{b e \log \left (c x^n\right )}{3 x^3}-\frac{b d n}{25 x^5}-\frac{b e n}{9 x^3} \]

Antiderivative was successfully verified.

[In]

Integrate[((d + e*x^2)*(a + b*Log[c*x^n]))/x^6,x]

[Out]

-(a*d)/(5*x^5) - (b*d*n)/(25*x^5) - (a*e)/(3*x^3) - (b*e*n)/(9*x^3) - (b*d*Log[c*x^n])/(5*x^5) - (b*e*Log[c*x^
n])/(3*x^3)

________________________________________________________________________________________

Maple [C]  time = 0.112, size = 251, normalized size = 4.4 \begin{align*} -{\frac{b \left ( 5\,e{x}^{2}+3\,d \right ) \ln \left ({x}^{n} \right ) }{15\,{x}^{5}}}-{\frac{75\,i\pi \,be{x}^{2}{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-75\,i\pi \,be{x}^{2}{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -75\,i\pi \,be{x}^{2} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+75\,i\pi \,be{x}^{2} \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +150\,\ln \left ( c \right ) be{x}^{2}+50\,ben{x}^{2}+150\,ae{x}^{2}+45\,i\pi \,bd{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-45\,i\pi \,bd{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -45\,i\pi \,bd \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+45\,i\pi \,bd \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +90\,\ln \left ( c \right ) bd+18\,bdn+90\,ad}{450\,{x}^{5}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x^2+d)*(a+b*ln(c*x^n))/x^6,x)

[Out]

-1/15*b*(5*e*x^2+3*d)/x^5*ln(x^n)-1/450*(75*I*Pi*b*e*x^2*csgn(I*x^n)*csgn(I*c*x^n)^2-75*I*Pi*b*e*x^2*csgn(I*x^
n)*csgn(I*c*x^n)*csgn(I*c)-75*I*Pi*b*e*x^2*csgn(I*c*x^n)^3+75*I*Pi*b*e*x^2*csgn(I*c*x^n)^2*csgn(I*c)+150*ln(c)
*b*e*x^2+50*b*e*n*x^2+150*a*e*x^2+45*I*Pi*b*d*csgn(I*x^n)*csgn(I*c*x^n)^2-45*I*Pi*b*d*csgn(I*x^n)*csgn(I*c*x^n
)*csgn(I*c)-45*I*Pi*b*d*csgn(I*c*x^n)^3+45*I*Pi*b*d*csgn(I*c*x^n)^2*csgn(I*c)+90*ln(c)*b*d+18*b*d*n+90*a*d)/x^
5

________________________________________________________________________________________

Maxima [A]  time = 1.03525, size = 77, normalized size = 1.35 \begin{align*} -\frac{b e n}{9 \, x^{3}} - \frac{b e \log \left (c x^{n}\right )}{3 \, x^{3}} - \frac{a e}{3 \, x^{3}} - \frac{b d n}{25 \, x^{5}} - \frac{b d \log \left (c x^{n}\right )}{5 \, x^{5}} - \frac{a d}{5 \, x^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x^2+d)*(a+b*log(c*x^n))/x^6,x, algorithm="maxima")

[Out]

-1/9*b*e*n/x^3 - 1/3*b*e*log(c*x^n)/x^3 - 1/3*a*e/x^3 - 1/25*b*d*n/x^5 - 1/5*b*d*log(c*x^n)/x^5 - 1/5*a*d/x^5

________________________________________________________________________________________

Fricas [A]  time = 1.26499, size = 167, normalized size = 2.93 \begin{align*} -\frac{9 \, b d n + 25 \,{\left (b e n + 3 \, a e\right )} x^{2} + 45 \, a d + 15 \,{\left (5 \, b e x^{2} + 3 \, b d\right )} \log \left (c\right ) + 15 \,{\left (5 \, b e n x^{2} + 3 \, b d n\right )} \log \left (x\right )}{225 \, x^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x^2+d)*(a+b*log(c*x^n))/x^6,x, algorithm="fricas")

[Out]

-1/225*(9*b*d*n + 25*(b*e*n + 3*a*e)*x^2 + 45*a*d + 15*(5*b*e*x^2 + 3*b*d)*log(c) + 15*(5*b*e*n*x^2 + 3*b*d*n)
*log(x))/x^5

________________________________________________________________________________________

Sympy [A]  time = 5.519, size = 88, normalized size = 1.54 \begin{align*} - \frac{a d}{5 x^{5}} - \frac{a e}{3 x^{3}} - \frac{b d n \log{\left (x \right )}}{5 x^{5}} - \frac{b d n}{25 x^{5}} - \frac{b d \log{\left (c \right )}}{5 x^{5}} - \frac{b e n \log{\left (x \right )}}{3 x^{3}} - \frac{b e n}{9 x^{3}} - \frac{b e \log{\left (c \right )}}{3 x^{3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x**2+d)*(a+b*ln(c*x**n))/x**6,x)

[Out]

-a*d/(5*x**5) - a*e/(3*x**3) - b*d*n*log(x)/(5*x**5) - b*d*n/(25*x**5) - b*d*log(c)/(5*x**5) - b*e*n*log(x)/(3
*x**3) - b*e*n/(9*x**3) - b*e*log(c)/(3*x**3)

________________________________________________________________________________________

Giac [A]  time = 1.3076, size = 89, normalized size = 1.56 \begin{align*} -\frac{75 \, b n x^{2} e \log \left (x\right ) + 25 \, b n x^{2} e + 75 \, b x^{2} e \log \left (c\right ) + 75 \, a x^{2} e + 45 \, b d n \log \left (x\right ) + 9 \, b d n + 45 \, b d \log \left (c\right ) + 45 \, a d}{225 \, x^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x^2+d)*(a+b*log(c*x^n))/x^6,x, algorithm="giac")

[Out]

-1/225*(75*b*n*x^2*e*log(x) + 25*b*n*x^2*e + 75*b*x^2*e*log(c) + 75*a*x^2*e + 45*b*d*n*log(x) + 9*b*d*n + 45*b
*d*log(c) + 45*a*d)/x^5